@extends('admin.layout.index')
@section('content')
@if (count($errors) > 0)
    <div class="mws-form-message error">
        <ul>
            @foreach ($errors->all() as $error)
                <li>{{ $error }}</li>
            @endforeach
        </ul>
    </div>
@endif
<div class="mws-panel grid_8">
	<div class="mws-panel-header">
    	<span>商品库存修改</span>
    </div>
    <div class="mws-panel-body no-padding">
    	<form action="/admin/goods/inventoryupdate" class="mws-form" method='post'>
            <input type="hidden" name="id" value="{{$data1['id']}}">
    		{{csrf_field()}}
    		<div class="mws-form-inline">
    			<div class="mws-form-row">
    				<label class="mws-form-label">商品货号</label>
    				<div class="mws-form-item">
    	                <input type="text" class="small" name="num" style="width:200px" value="{{$data}}" disabled>
    				</div>
    			</div>
                <div class="mws-form-row">
                    <label class="mws-form-label">尺寸</label>
                    <div class="mws-form-item">
                        <select class="large" name="size" style="width:200px">
<<<<<<< HEAD
                            <option value=''>--请选择--</option>
                            @foreach($data3 as $v)
                            <option value="{{$v['id']}}" @if($data1['size'] == $v['id']) selected @endif>--{{$v['sizename']}}--</option>
                            @endforeach
                        </select>
                    </div>
                </div>         
=======
                            <option value='XS' @if($data1['size'] == 'XS') selected @endif>--XS--</option>
                            <option value='S' @if($data1['size'] == 'S') selected @endif>--S--</option>
                            <option value='M' @if($data1['size'] == 'M') selected @endif>--M--</option>
                            <option value='L' @if($data1['size'] == 'L') selected @endif>--L--</option>
                            <option value='XL' @if($data1['size'] == 'XL') selected @endif>--XL--</option>
                            <option value='2XL' @if($data1['size'] == '2XL') selected @endif>--2XL--</option>
                            <option value='3XL' @if($data1['size'] == '3XL') selected @endif>--3XL--</option>
                        </select>
                    </div>
                </div>         X
>>>>>>> 31e42f2d3415b82d4888522298db4e7de5f9c8aa
                <div class="mws-form-row">
                    <label class="mws-form-label">颜色</label>
                    <div class="mws-form-item">
                        <select class="large" name="color" style="width:200px">
<<<<<<< HEAD
                            @foreach($data2 as $v)
                            <option value="{{$v['id']}}" @if($data1['color'] == $v['id']) selected @endif>--{{$v['colorname']}}--</option>
                            @endforeach
=======
                            <option value='红' @if($data1['color'] == '红') selected @endif>--红--</option>
                            <option value='白' @if($data1['color'] == '白') selected @endif>--白--</option>
                            <option value='黄' @if($data1['color'] == '黄') selected @endif>--黄--</option>
                            <option value='黑' @if($data1['color'] == '黑') selected @endif>--黑--</option>
                            <option value='灰' @if($data1['color'] == '灰') selected @endif>--灰--</option>
>>>>>>> 31e42f2d3415b82d4888522298db4e7de5f9c8aa
                        </select>
                    </div>
                </div>
                <div class="mws-form-row">
                    <label class="mws-form-label">库存数量</label>
                    <div class="mws-form-item">
                        <input type="text" class="small" name="num" style="width:200px" value="{{$data1['num']}}">
                    </div>
                </div>
    		</div>
    		<div class="mws-button-row">
    			<input type="submit" class="btn btn-danger" value="修改">
    			<input type="reset" class="btn " value="重置">
    		</div>
    	</form>
    </div>    	
</div>
@endsection
